<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Install extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->model('admin/install_model', 'install');
		$this->load->helper('form');
	}

	function index()
	{
		$this->load->view('admin/install/check');
	}

	function build()
	{
		$data['session_table'] = $this->install->create_ci_session_table() ? 'SUCCESS' : 'FAIL';
		$data['session_check'] = $this->install->check_session() ? 'SUCCESS' : 'FAIL';
		$this->load->view('admin/install/build', $data);
	}
}